<%@ page import="org.opencms.jsp.CmsJspActionElement" %>
<%@ page import="org.opencms.file.CmsResource"%>
<%@ page import="org.opencms.jsp.CmsJspNavElement"%>
<%@ page import="org.opencms.file.CmsPropertyDefinition"%>
<%@ page import="java.util.*" %>
<%
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
String filename = cms.getCmsObject().getRequestContext().getUri();
String foldername = CmsResource.getFolderPath(filename);
if (!foldername.startsWith("/")) {
foldername = "/"+foldername;
}
String[] uris = foldername.split("/");

String link = "/";
for(int i=1;i<uris.length;i++)
{
  link += uris[i]+"/";
  if(i==1){
     out.print("<a href='"+cms.link(link)+"'><span></span></a>");
  }
  else{
    out.print(" > <a href='"+cms.link(link)+"'>"+cms.property(CmsPropertyDefinition.PROPERTY_TITLE, link)+"</a>");
  }
}
%>